<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<<<<<<< HEAD
    <link rel="stylesheet" href="/plug/layui/css/layui.css">
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        body {
            padding: 16px;
        }
    </style>
</head>
<body>
<button type="button" class="layui-btn layui-btn-primary" id="add">
    <i class="layui-icon layui-icon-addition"></i> 添加数据
</button>
<table id="test"></table>

<script type="text/html" id="opera">
    <div class="layui-btn-group">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">
            <i class="layui-icon layui-icon-edit"></i>
        </button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del">
            <i class="layui-icon layui-icon-delete"></i>
        </button>
    </div>
</script>

<script src="/plug/layui/layui.js"></script>
<script>
    layui.use("table", function () {
        let $ = layui.jquery;
        $("#add").click(function () {
            window.open("/pc/index/add/")
        });
        let table = layui.table;
        table.render({
            elem: "#test", url: "/api/account/sel", cols: [[
                {field: "account_id", title: "序号", sort: true},
                {field: "account_no", title: "学号"},
                {field: "account_name", title: "姓名"},
                {field: "gender_name", title: "性别"},
                {field: "add_time_name", title: "注册时间"},
                {fixed: 'right', title: '操作', toolbar: '#opera', width: 80}
            ]]
        });
    });
</script>
=======

    <link rel="stylesheet" href="/plug/layui/css/layui.css">


</head>
<body>


<script src="/plug/layui/layui.js"></script>
>>>>>>> origin/master

</body>
</html>